package com.xckj.ibox.global;

/**
 * @Author: ChenYao
 * @Describe: 存放一些常量
 * @Date: 2023/6/12 16:25
 */
public class Constant {
    /**
     * Api接口
     */
    public static final String BASE_URL = "https://d-cangpin.bigchun.com/api/";

    /**
     * H5域名
     */
    public static final String BASE_WEB_URL = "https://d-cangpin.bigchun.com/h5/index.html#/";
    /**
     * 成功码
     */
    public static int SUCCESS_CODE = 1;
    /**
     * Token失效
     */
    public static int TOKEN_LOSE_CODE = 401;
    /**
     * 退出时间
     */
    public static int EXIT_TIME = 2000;
    /**
     * App的Token
     */
    public static String APP_TOKEN = "app_token";
    /**
     * 商城用的Token
     */
    public static String TOKEN = "token";

    /**
     * 是否自动登录
     */
    public static String IS_AUTO_LOGIN = "is_auto_login";

    /**
     * 手机号长度
     */
    public static int MOBILE_LENGTH = 11;

    /**
     * 状态是否可见
     */
    public static String IS_VISIBLE = "is_visible";

    /**
     * 页码
     */
    public static int PAGE = 1;

    /**
     * 条目数
     */
    public static int PAGE_SIZE = 10;

    /**
     * 是否第一次进入
     */
    public static String IS_FIRST = "is_first";

    /**
     * bugly的AppId
     */
    public static String BUGLY_APP_ID = "fb61a0a1cb";

    /**
     * H5页面地址
     */
    public static final String H5_URL_PATH = "h5_url_path";
    /**
     * 域名前缀
     */
    public static final String DOMAIN_PREFIX = "http";

    /**
     * H5链接地址
     */
    public static class H5Address {
        /**
         * 消息
         */
        public static String MESSAGE_URL = BASE_WEB_URL + "pages/activity/notice/index";
        /**
         * 设置页面
         */
        public static String SETTING_URL = BASE_WEB_URL + "pages/user/set";
        /**
         * 商品详细
         */
        public static String GOODS_DETAILS_URL = BASE_WEB_URL + "pages/shucang/home/homeDetails?id=%s&type=shouye";
        /**
         * 我的积分
         */
        public static String MY_POINTS_URL = BASE_WEB_URL + "pages/user/wallet/score-jifen";
        /**
         * 我的金豆
         */
        public static String MY_GOLDEN_BEAN_URL = BASE_WEB_URL + "pages/user/wallet/score-balance";
        /**
         * 我的钱包
         */
        public static String MY_WALLET_URL = BASE_WEB_URL + "pages/user/wallet/index";
        /**
         * 发出邀请
         */
        public static String INVITE_URL = BASE_WEB_URL + "pages/shucang/invite";
        /**
         * 商城订单
         */
        public static String SHOPPING_MALL_ORDER_URL = BASE_WEB_URL + "pages/order/list?type=all";
        /**
         * 藏图订单
         */
        public static String COLLECT_ORDER_URL = BASE_WEB_URL + "pages/shucang/shucangorder/shucangOrderList";
        /**
         * 我的藏品
         */
        public static String COLLECTION_URL = BASE_WEB_URL + "pages/user/favorite";
        /**
         * 搜索
         */
        public static String SEARCH_URL = BASE_WEB_URL + "pages/public/search";
        /**
         * 交易
         */
        public static String TRANSACTION_URL = BASE_WEB_URL + "pages/shucang/index";
        /**
         * 商城
         */
        public static String SHOPPING_MALL_URL = BASE_WEB_URL + "pages/index/index";
        /**
         * 购物车
         */
        public static String SHOPPING_CART_URL = BASE_WEB_URL + "pages/index/cart";
        /**
         * 个人信息
         */
        public static String USER_INFO = BASE_WEB_URL + "pages/user/info";
    }

    /**
     * 协议
     */
    public static class Agreement {
        /**
         * 平台协议
         */
        public static final String AGREEMENT_1 = "agreement_1";
        /**
         * 隐私政策
         */
        public static final String AGREEMENT_2 = "agreement_2";
        /**
         * 用户协议
         */
        public static final String AGREEMENT_3 = "agreement_3";
    }

}
